//
//  UIBannerImageView.m
//  InTheSnow
//
//  Created by di on 7/29/09.
//  Copyright 2009 INTELLECTSOFT. All rights reserved.
//

#import "UIBannerImageView.h"


@implementation UIBannerImageView

@synthesize timeout;
@synthesize url;

- (id) initWithURL:(NSURL*)url_
{
	self = [super init];
	if (self != nil) {
		NSLog(@"init banner...");
		self.url = url_ ; 
		self.userInteractionEnabled = YES;
	}
	return self;
}


- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
	[[UIApplication sharedApplication] openURL:url];
	NSLog(@"%i %@", [self.url retainCount], [url description]);
}

- (void) dealloc
{
	[url release];
	[super dealloc];
}


@end
